package com.example.prison.service;

import com.example.prison.entity.CarManagement;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
* @author jiang
* @description 针对表【car_management】的数据库操作Service
* @createDate 2024-06-03 11:07:19
*/
public interface CarManagementService extends IService<CarManagement> {

    PageInfo<CarManagement> get(int pageNumber, int pageSize, String carNumber, String carDepart,String carStatus);

    List<CarManagement> getInsideCar();

    List<CarManagement> getOutsideCar();

    int add(CarManagement car);

    void delete(Integer[] ids);

    int update(CarManagement car, Integer carId);

    CarManagement getById(Integer carId);

    CarManagement getOneByNumber(String carNumber);

    CarManagement getByNumberAndDepart(String carNumber, String depart);

    PageInfo<CarManagement> getRetentionCar(int pageNumber, int pageSize, String carNumber, String depart);

}
